package com.ruoyi.marketing.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import kotlin.jvm.Transient;
import lombok.*;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 营销活动对象 activity
 *
 * @author zy
 * @date 2023-01-28
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("activity")
public class Activity extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /**
     *
     */
    @Excel(name = "")
    @TableField("name")
    private String name;

    /**
     *
     */
    @Excel(name = "")
    @TableField("number")
    private Integer number;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField("createtime")
    private Date createTime;

    /**
     *
     */
    @Excel(name = "")
    @TableField("place")
    private Integer place;

    /**
     *
     */
    @Excel(name = "")
    @TableField("picture")
    private String picture;

    /**
     *
     */
    @Excel(name = "")
    @TableField("connect")
    private String connect;

    /**
     *
     */
    @TableField("validtime")
    private String validTime;

    /**
     *
     */
    @Excel(name = "")
    @TableField("rule")
    private Integer rule;

    /**
     *
     */
    @Excel(name = "")
    @TableField("state")
    private Integer state;
    @Transient
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date minTime;
    @Transient
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date maxTime;
    private Integer taskType;
    private Integer prizeType;
}
